package com.jgame.secondarymarket.application.service.product;

import com.jgame.secondarymarket.domain.product.entity.ProductProperties;
import com.jgame.secondarymarket.domain.product.service.PropertiesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @title: PropertiesApplicationService
 * @Author Wangsj
 * @Date: 2021/7/23
 */
@Service
@Transactional
@Slf4j
public class PropertiesApplicationService {

    @Autowired
    PropertiesService propertiesService;

    public void delById(Long productId, List<Long> propertiesIds) {
        propertiesService.delById(productId, propertiesIds);
    }

    public void add(Long productId, List<ProductProperties> productProperties) {
        propertiesService.add(productId, productProperties);
    }

}
